package com.zfei.gfb.dao;

import com.zfei.gfb.model.GfbHouseApply;
import com.zfei.gfb.query.GfbHouseApplyQuery;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GfbHouseApplyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GfbHouseApply record);

    int insertSelective(GfbHouseApply record);

    GfbHouseApply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GfbHouseApply record);

    int updateByPrimaryKey(GfbHouseApply record);

    List<GfbHouseApply> list(GfbHouseApplyQuery record);

    int total(GfbHouseApplyQuery record);

    int totalWeb(GfbHouseApplyQuery record);

    List<GfbHouseApply> listWeb(GfbHouseApplyQuery record);

    List<GfbHouseApply> list(List ids);

    int deleteByHouseId(Integer id);

    List<GfbHouseApply> selectByHouseId(Integer id);

    List<GfbHouseApply> selectByHouseIdAndUserIdAndType(@Param("id") Integer id,@Param("userId") Integer userId,@Param("userType") Integer userType);

    List<GfbHouseApply> selectByUserIdAndUserType(@Param("userId") Integer userId,@Param("userType") Integer userType,
                                                  @Param("offset") Integer offset,@Param("limit") Integer limit);
}